<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>

<%@include file="/WEB-INF/jsp/include/tags.jsp"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title>user - write</title>
	<link rel="stylesheet" type="text/css" href="/css/style.css"/>
	<script type="text/javascript">
	<!--
		function goList() {
			var f = document.userCriteriaForm;
			f.submit();
		}
	//-->
	</script>
</head>
<body>
	
	<p><a href="/">home</a></p>
		
	<h1>User - edit</h1>
	
	<form:form commandName="userCriteria" id="userCriteriaForm" name="userCriteriaForm" action="/user.do" method="get">
	<input type="hidden" name="mode"/>
	<form:hidden path="userId"/>
	<form:hidden path="paging.currentPage"/>
	</form:form>

	<form:form commandName="user" name="userForm" action="/userEdit.do">
	<input type="hidden" name="mode" value="edit"/>
	<form:hidden path="userId"/>
	<table width="800">
		<colgroup width="800">
			<col width="100"/>
			<col width="*"/>
		</colgroup>
		<tr>
			<th>userId</th>
			<td>
				<c:out value="${user.userId}"/>
			</td>
		</tr>
		<tr>
			<th>username</th>
			<td>
				<form:input path="username"/>
				<form:errors path="username" cssClass="errorMessage"/>
			</td>
		</tr>
		<tr>
			<th>email</th>
			<td>
				<form:input path="email"/>
				<form:errors path="email" cssClass="errorMessage"/>
			</td>
		</tr>
		<tr>
			<th>password</th>
			<td>
				<form:input path="password"/>
				<form:errors path="password" cssClass="errorMessage"/>
			</td>
		</tr>
		<tr>
			<th>registerTime</th>
			<td>
				<form:input path="registerTime"/>
				<form:errors path="registerTime" cssClass="errorMessage"/>
			</td>
		</tr>
		<tr>
			<th>registerIp</th>
			<td>
				<form:input path="registerIp"/>
				<form:errors path="registerIp" cssClass="errorMessage"/>
			</td>
		</tr>
		<tr>
			<th>lastLoginTime</th>
			<td>
				<form:input path="lastLoginTime"/>
				<form:errors path="lastLoginTime" cssClass="errorMessage"/>
			</td>
		</tr>
		<tr>
			<th>lastLoginIp</th>
			<td>
				<form:input path="lastLoginIp"/>
				<form:errors path="lastLoginIp" cssClass="errorMessage"/>
			</td>
		</tr>
		<tr>
			<th>loginCount</th>
			<td>
				<form:input path="loginCount"/>
				<form:errors path="loginCount" cssClass="errorMessage"/>
			</td>
		</tr>
		<tr>
			<th>resetKey</th>
			<td>
				<form:input path="resetKey"/>
				<form:errors path="resetKey" cssClass="errorMessage"/>
			</td>
		</tr>
		<tr>
			<th>resetPwd</th>
			<td>
				<form:input path="resetPwd"/>
				<form:errors path="resetPwd" cssClass="errorMessage"/>
			</td>
		</tr>
		<tr>
			<th>errorTime</th>
			<td>
				<form:input path="errorTime"/>
				<form:errors path="errorTime" cssClass="errorMessage"/>
			</td>
		</tr>
		<tr>
			<th>errorCount</th>
			<td>
				<form:input path="errorCount"/>
				<form:errors path="errorCount" cssClass="errorMessage"/>
			</td>
		</tr>
		<tr>
			<th>errorIp</th>
			<td>
				<form:input path="errorIp"/>
				<form:errors path="errorIp" cssClass="errorMessage"/>
			</td>
		</tr>
		<tr>
			<th>activation</th>
			<td>
				<form:input path="activation"/>
				<form:errors path="activation" cssClass="errorMessage"/>
			</td>
		</tr>
		<tr>
			<th>activationCode</th>
			<td>
				<form:input path="activationCode"/>
				<form:errors path="activationCode" cssClass="errorMessage"/>
			</td>
		</tr>
	</table>
	<input type="submit" value="edit"/>
	</form:form>

	<a href="javascript:goList();">list</a>

</body>
</html>
